﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WebApi.Repository.Entity
{
    /// <summary>
    /// 商品、标签对应的中间表
    /// </summary>
    [Table("product_tag")]
    public class ProductTag
    {
        /// <summary>
        /// 中间表的id
        /// </summary>
        public long Id { set; get; }
        /// <summary>
        /// 对应商品的id，product表的外键
        /// </summary>
        public long ProductId { set; get; }
        /// <summary>
        /// 对应标签的id，tag表的外键
        /// </summary>
        public long TagId { set; get; }
    }
}
